<!---- SUI模板 on 2017/4/8 -->
<script ng-init="initCss('release-task-page/css/task-condition.css')"></script>
<header class="bar bar-nav">
    <a class="icon icon-left pull-left button-nav" href="#/release-task-content"></a>
    <h1 class="title">谁可以看</h1>
    <div><span class=" pull-right ending" style="z-index: 1!important;position: relative" ng-click="saveTask()">完成</span></div>
</header>
<div class="content"  ng-init="getSavedCondition()">
    <div class="list-block">
        <ul>
            <!-- Text inputs -->
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-name"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">公开</div>
                        <div class="item-input">
                            <input type="text" value="所有朋友可见" readonly>
                        </div>
                        <input ng-model="taskInfo.conditionSex" class="all-visual" type="radio" ng-value="choiceOfCondition[0]" class="all" style="width: 1rem;height: 1rem"/>
                    </div>
                </div>
            </li>
        </ul>
        <ul>
            <!-- Text inputs -->
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-name"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">部分可见</div>
                        <div class="item-input">
                            <input type="text" value="男生可见" readonly>
                        </div>
                        <input class="boy-visual" ng-model="taskInfo.conditionSex" type="radio" ng-value="choiceOfCondition[1]" class="all" style="width: 1rem;height: 1rem"/>
                    </div>
                </div>
            </li>
        </ul>
        <ul>
            <!-- Text inputs -->
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-name"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">部分可见</div>
                        <div class="item-input">
                            <input type="text" value="女生可见" readonly>
                        </div>
                        <input class="girl-visual" ng-model="taskInfo.conditionSex" ng-value="choiceOfCondition[2]" type="radio" class="all"
                               style="width: 1rem;height: 1rem"/>
                    </div>
                </div>
            </li>
        </ul>
        <ul>
            <!-- Text inputs -->
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-name"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">最小年龄</div>
                        <div class="item-input">
                            <input type="number" ng-model="taskInfo.conditionMinAge" placeholder="未设置" class="min-age">
                        </div>
                    </div>
                </div>
            </li>
        </ul>
        <ul>
            <!-- Text inputs -->
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-name"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">最大年龄</div>
                        <div class="item-input">
                            <input type="number" ng-model="taskInfo.conditionMaxAge" placeholder="未设置" class="max-age">
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
<div ng-init="suiMobileInit()"></div>